package chapter_7;

import java.io.File;
import java.io.IOException;
import java.sql.SQLOutput;

public class Test2 {

    public static void main(String[] args) throws IOException {
//        File file  = new File("D:\\b.txt");
//        System.out.println(file.exists());
//        boolean flag = file.createNewFile();
//        System.out.println(flag);

//        System.out.println(file.getPath());
//        File absoluteFile = file.getAbsoluteFile();
//        System.out.println(file.getAbsolutePath());
//        System.out.println(file.getName());
//        System.out.println(file.getParent());
//        System.out.println(file.getParentFile());
//        System.out.println("---------------------------------------");
//        System.out.println(file.length());
        File file = new File("D:\\project\\lyq.http");
        File[] list = file.listFiles();
        System.out.println(list);
    }
}
